import sys
sys.path.append('..')
from common.layers import Embedding

class EmbeddingDot:
    def __init__(self, W):
        self.embed = Embedding(W)
        self.params =  self.embed.params
        self.grads = self.embed.grads
        self.cache = None